package com.ruoyi.web.controller.system;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.SysUserStage1;
import com.ruoyi.system.service.ISysUserStage1Service;

/**
 * 入党申请人阶段Controller
 *
 * @author ruoyi
 * @date 2024-04-15
 */
@RestController
@RequestMapping("/system/stage1")
public class SysUserStage1Controller extends BaseController
{
    @Autowired
    private ISysUserStage1Service sysUserStage1Service;

    /**
     * 修改入党申请人阶段
     */
    @PreAuthorize("@ss.hasPermi('system:stage1:edit')")
    @Log(title = "入党申请人阶段", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody SysUserStage1 sysUserStage1)
    {
        return toAjax(sysUserStage1Service.updateSysUserStage1(sysUserStage1));
    }

}
